package com.lc.user.express.httpserver;

import com.lc.user.express.model.PreferentialModel;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/8/19.
 */

@HttpInlet(Net.GET_ABOUT)
public class GetAbout extends ZJDBAsyGet<GetAbout.Info>{
    public GetAbout(AsyCallBack asyCallBack) {
        super(asyCallBack);
    }

    @Override
    protected Info parser(JSONObject object) throws Exception {
        if (object.optInt("message") == 1) {
            Info info = new Info();
            info.web_address=object.optString("web_address");
            info.web_tiyan=object.optString("web_tiyan");
            info.web_tel=object.optString("web_tel");
            info.web_hotline=object.optString("web_hotline");

            return info;
        }
        return null;
    }

    public static class Info{
        public String web_address,web_tiyan,web_tel,web_hotline;
    }
}
